import service from '@/utils/request'

// 列表
export const queryApplyListApi = (dataForm: any) => {
	return service.post('/api/scientificResearchInfo/queryApplyList', dataForm)
}

export const deleteApi = (dataForm: any) => {
	return service.post('/api/scientificResearchInfo/delete', dataForm)
}

export const addApi = (dataForm: any) => {
	return service.post('/api/scientificResearchInfo/add', dataForm)
}

export const updateApi = (dataForm: any) => {
	return service.post('/api/scientificResearchInfo/update', dataForm)
}

//查看
export const detailApi = (dataForm: any) => {
	return service.post('/api/scientificResearchInfo/detail', dataForm)
}

//
export const startWorkFlowApi = (dataForm: any) => {
	return service.post('/api/scientificResearchInfo/startWorkFlow', dataForm)
}

//前瞻-项目申报管理(审核管理)-列表
export const queryAuditListApi = (dataForm: any) => {
	return service.post('/api/scientificResearchInfo/queryAuditList', dataForm)
}

//前瞻-项目申报管理(审核)-批量提交
export const batchAuditApi = (dataForm: any) => {
	return service.post('/api/scientificResearchInfo/batchAudit', dataForm)
}

//前瞻-项目申报管理(审核)-批量暂存附件
export const saveFilesApi = (dataForm: any) => {
	return service.post('/api/scientificResearchInfo/saveFiles', dataForm)
}
//前瞻-项目申报管理(审核)-暂存流程意见、附件
export const saveOpinionsApi = (dataForm: any) => {
	return service.post('/api/scientificResearchInfo/saveOpinions', dataForm)
}
//前瞻-项目申报管理(审核)-查看流程意见、附件-申请阶段
export const queryStageApi = (dataForm: any) => {
	return service.post('/api/scientificResearchInfo/queryStage', dataForm)
}

//前瞻-项目申报管理(审核)-查看流程意见、附件
export const queryOpinionsApi = (dataForm: any) => {
	return service.post('/api/scientificResearchInfo/queryOpinions', dataForm)
}

//前瞻-申报列表-撤回批文
export const revokeApprovalApi = (dataForm: any) => {
	return service.post('/api/scientificResearchInfo/revokeApproval', dataForm)
}

//前瞻-项目申报管理(审核)-退回
export const doReturnApi = (dataForm: any) => {
	return service.post('/api/workflow/doReturn', dataForm)
}
export const doPublishApi = (dataForm: any) => {
	return service.post('/api/scientificResearchInfo/doPublish', dataForm)
}

export const downloadByFileNameApi = (dataForm: any) => {
	return service.post('/api/scientificResearchInfo/downloadByFileName', dataForm)
}
